home *** CD-ROM | disk | FTP | other *** search
- // mfc_mdiView.h : interface of the CMfc_mdiView class
- //
- /////////////////////////////////////////////////////////////////////////////
-
- #ifndef CMFC_MDIVIEW_H
- #define CMFC_MDIVIEW_H
-
- // Standard DataViews header:
- #include "Tfundecl.h" // T routines (screens, drawports & views)
- #include "VOfundecl.h" // VO layer (VOloCreate, VOobDereference, etc.)
- #include "VUerfundecl.h" // VUer: VUerHandleLocEvent
- #include "GRfundecl.h" // GR routines (interface to display device)
-
-
- class CMfc_mdiView : public CView
- {
- protected: // create from serialization only
- CMfc_mdiView();
- DECLARE_DYNCREATE(CMfc_mdiView)
-
- // Attributes
- public:
- CMfc_mdiDoc* GetDocument();
-
- // Operations
- public:
- DRAWPORT GetDrawport() { return m_Dp; }
- BOOL InitDv(VIEW dvView = 0);
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMfc_mdiView)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- //}}AFX_VIRTUAL
-
- // Implementation
- public:
- virtual ~CMfc_mdiView() {};
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
-
- protected:
- UINT m_TimerID; // ID returned by CWnd::SetTimer()
- OBJECT m_Scr; // DataViews screen object
- OBJECT m_Loc; // DataViews location object for handling user input
- DRAWPORT m_Dp; // DataViews DRAWPORT
- FARPROC m_DvProc; // DataViews driver WinProc
-
- // Generated message map functions
- protected:
- void InstallTimer(UINT nTimeInterval = 100);
- BOOL SetupLoc(const MSG* msg);
- void DisplayObjectType(OBJECT Ob);
-
-
- //{{AFX_MSG(CMfc_mdiView)
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnDestroy();
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
- afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
- afx_msg void OnPaletteChanged(CWnd* pFocusWnd);
- afx_msg BOOL OnQueryNewPalette();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
-
- #ifndef _DEBUG // debug version in mfc_mdiView.cpp
- inline CMfc_mdiDoc* CMfc_mdiView::GetDocument()
- { return (CMfc_mdiDoc*)m_pDocument; }
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
-
-
- #endif
-